From c50d59f962ac4e9ff77680020f446109994e421c Mon Sep 17 00:00:00 2001 From: Mukesh Rathor Date: Wed, 13 Nov 2013 09:40:41 +0100 Subject: [PATCH] pvh: disable 32-bit guest support for now Removing the assert allows the PVH code to call this during vmcs construction in a later patch, making the code more robust by removing duplicate code. To be implemented. Signed-off-by: Mukesh Rathor Signed-off-by: George Dunlap Reviewed-by: Jan Beulich Acked-by: Tim Deegan Acked-by: Keir Fraser Acked-by: Eddie Dong --- xen/arch/x86/domain.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 5ec992db81..45e5afead7 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -339,6 +339,14 @@ int switch_compat(struct domain *d) if ( d == NULL ) return -EINVAL; + + if ( is_pvh_domain(d) ) + { + printk(XENLOG_G_INFO + "Xen currently does not support 32bit PVH guests\n"); + return -EINVAL; + } + if ( !may_switch_mode(d) ) return -EACCES; if ( is_pv_32on64_domain(d) ) -- 2.30.2